package com.servertrack

import java.util.Date;

class Request {
	 String title
	 String company_name
	 Integer count_persons
	 String name_tourist
	 Long phone_number
	 String description
	 Date birthDate
	
	
	static belongsTo=[times:Times]	

	
	static constraints = {
		title(size:3..35, blank:false)
		company_name(size:2..30, blank:false)
		count_persons(blank:false)
		name_tourist(size:2..25, blank:false)
		phone_number(size:4..16,blank:false)
		description(size:2..100,nullable:true)
		birthDate(blank:false)
	}
	
	String toString(){
		return "User: ${title}"
	}
}
